﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V = Science.Mathematics.VectorCalculus;

namespace VectorCalculus5Ed.Chapter1.Section1
{
    public class Example01
    {
        public Example01()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
            V.Point p = new V.Point(3);
            p[0] = 1.0;
            p[1] = 1.0;
            p[2] = 1.0;
            V.Vector v1 = new V.Vector(p);
            V.Point p2 = new V.Point(3);
            p2[0] = 2.0;
            p2[1] = -3.0;
            p2[2] = 4.0;
            V.Vector v2 = new V.Vector(p2);

            V.Vector v3 = v1 + v2;

            result += v3[0].ToString() + "   " +
                v3[1].ToString() + "   " + v3[2].ToString() + "   ";            
        }
    }
}

// 3   -2   5   